<!-- 个人中心 -->
<template>
	<view class="container">
		<view class="title">{{info.title}}</view>
        <view class="img"><image style="width: 690rpx;height: 300rpx;" mode="widthFix" :src="info.img_main"></image></view>
        <view v-html="info.info" class="content"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				info:{}
			};

		},
		onLoad() {
         this.getData()
		},
		onShow() {

		},
		onReachBottom() {
		
		},
		computed: {

		},
		onPullDownRefresh(){
		},
		methods: {
            //培训活动
            getData(){
                let that=this
                that.$api.trainList({
            		type :5
                }).then(res => {
                    console.log('res',res)
                    if(res.code ==1){
                        if(res.data.length>0){
                             that.info=res.data[0]
                        }
                   
                    }
                    console.log('11',that.info)
                });
            },
         
		},
	}
</script>

<style lang="scss" scoped>
	* {
		box-sizing: border-box;
		margin: 0;
		padding: 0;
	}
page{
    height: 100% !important;
    min-height: 100% !important;
    background: #ffffff;
}
.container{
    padding: 43rpx 30rpx 0rpx 30rpx;
}
.title{
    font-size: 32rpx;
    font-family: Source Han Sans CN-Bold, Source Han Sans CN;
    font-weight: bold;
    color: #333333;
    }
    .img{
        margin-top: 36rpx;
    }
    .content{
        font-size: 28rpx;
        font-family: Source Han Sans CN-Regular, Source Han Sans CN;
        font-weight: 400;
        color: #333333;
         margin-top: 36rpx;
    }
</style>
